package com.spring.pojo;

import java.util.Objects;

/**
 * Description:
 * Copyright:   Copyright (c)2019
 * Company:     zefu
 *
 * @author: 张李鑫
 * @version: 1.0
 * Create at:   2022-02-17 10:09:37
 * <p>
 * Modification History:
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2022-02-17     张李鑫                     1.0         1.0 Version
 */
public class ClassName {
    private Integer id;
    private String className;

    public ClassName() {
    }

    public ClassName(Integer id, String className) {
        this.id = id;
        this.className = className;
    }



    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ClassName className1 = (ClassName) o;
        return Objects.equals(id, className1.id) &&
                Objects.equals(className, className1.className);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, className);
    }

    @Override
    public String toString() {
        return "ClassName{" +
                "id=" + id +
                ", className='" + className + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }
}
